using Net35.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class DeleteOpenInstancesRequest : OrganizationRequest
	{
		public Entity Target
		{
			get
			{
				if (base.Parameters.Contains("Target"))
				{
					return (Entity)base.Parameters["Target"];
				}
				return null;
			}
			set
			{
				base.Parameters["Target"] = value;
			}
		}
		public DateTime SeriesEndDate
		{
			get
			{
				if (base.Parameters.Contains("SeriesEndDate"))
				{
					return (DateTime)base.Parameters["SeriesEndDate"];
				}
				return default(DateTime);
			}
			set
			{
				base.Parameters["SeriesEndDate"] = value;
			}
		}
		public int StateOfPastInstances
		{
			get
			{
				if (base.Parameters.Contains("StateOfPastInstances"))
				{
					return (int)base.Parameters["StateOfPastInstances"];
				}
				return 0;
			}
			set
			{
				base.Parameters["StateOfPastInstances"] = value;
			}
		}
		public DeleteOpenInstancesRequest()
		{
			base.RequestName = "DeleteOpenInstances";
			this.Target = null;
			this.SeriesEndDate = default(DateTime);
			this.StateOfPastInstances = 0;
		}
	}
}
